#include <iostream>
#include "brass.h"
/**
 * 基类指针/引用 指向派生类对象，想要调用派生类重写的方法
 * 基类方法必须设置为 virtual
 * 派生类方法写不写都可以，推荐写，方便进一步生成派生类
 */
int main(int argc, char const *argv[])
{
    using std::cout;
    using std::endl;

    Brass * brass1 = new Brass("Brass people 1", 381299, 4000.00);
    Brass * brassplus1 = new BrassPlus("Brass Plus people 1", 382288, 3000.00);

    brass1->ViewAcct();
    cout << endl;
    brassplus1->ViewAcct();
    cout << endl;
    
    brassplus1->Deposit(1000);
    cout << "brassplus1 New Balance: " << brassplus1->Balance() << endl << endl;

    brass1->Withdraw(4200);
    cout << "brass1 balance: " << brass1->Balance() << endl << endl;
    brassplus1->Withdraw(4200);
    cout << "brassplus1 balance: "  << brassplus1->Balance() << endl;

    


    return 0;
}
